#!/usr/bin/env node

// const figlet = require('figlet')
// const chalk = require('chalk')
// const clear = require('clear')
import figlet from 'figlet'
import chalk from 'chalk'
import clear from 'clear'
import ora from 'ora'

clear()
figlet('Hello World!!', function(err, data) {
    if (err) {
        console.log('Something went wrong...');
        console.dir(err);
        return;
    }
    console.log(chalk.blue(data))
});

const spinner = ora('Loading unicorns').start();

setTimeout(() => {
	spinner.color = 'yellow';
	spinner.text = 'Loading rainbows';
    spinner.succeed()
}, 1000);